export async function $fetch(url, option) {
    if (!option.headers) {
        option.headers = {}
    }
    option.headers["Content-Type"] = "application/json"
    // await fetch(url, option).then((res) => res.json())
    return new Promise(async (resolve) => {
        let res = await fetch(url, option)

        resolve(res.json())
    })
}